package io.shallwe._admin.basedata.init;

import com.jfinal.core.Controller;
import com.jfinal.validate.Validator;

public class InitHangerPositionValidator extends Validator {

	@Override
	protected void validate(Controller c) {

		setShortCircuit(true);
		validateRequiredString("rack.locationCode",  "msg", "工艺位置不能为空");
	}

	@Override
	protected void handleError(Controller c) {
		c.setAttr("state", "fail");
		c.renderJson();
	}

}
